package com.space.school.dao;

import com.space.school.domain.Category;
import com.space.school.domain.User;

import java.util.List;
import java.util.Map;

public interface CategoryDao {

    List<Category> search(int start, int pageSize, Map<String,String[]> map);
    int count(Map<String,String[]> map);
    int insert(String category_name,String category_type);
    Category isInsert(String category_name);
    void delete(int category_id);
    void update(Category category);
    Category findById(int category_id);
}
